let exists = ["class_role", "employee_role", "flow_role", "driver"];
// 三个参数 1维修班长	class_role 2 维修工	employee_role 3 维修作业长	flow_role 4 驾驶员	driver

export function setupHasPers(app) {
  app.provide("hasPers", (...rs) => {
    
    let req = false;
    let roles = localStorage.getItem("roles");
    for (let s of rs) {
      if (JSON.parse(roles).some(r=>r.value==s)) {
        req = true;
        return req;
      }
    }
    return req
  });
}

